///*
// * To change this template, choose Tools | Templates
// * and open the template in the editor.
// */
//package candidate.beans;
//
//import candidate.ejb.VideoProcesingEjb;
//import entities.CandidateLanguageInfo;
//import java.io.Serializable;
//import javax.enterprise.context.SessionScoped;
//import javax.enterprise.event.Event;
//import javax.inject.Inject;
//import javax.inject.Named;
//import candidate.qualifiers.UploadedVideoEvent;
//import entities.Candidate;
//import qualifiers.LoggedIn;
//
///**
// *
// * @author damfercer
// */
//@Named(value = "editVideoBean")
//@SessionScoped
//public class EditVideoBean implements Serializable {
//    @Inject
//    @UploadedVideoEvent
//    Event<String> uploadedVideoEvent;
//    @Inject
//    private VideoProcesingEjb videoProcesingEjb;
//    @Inject
//    @LoggedIn
//    private Candidate candidate;
//
//    /**
//     * Creates a new instance of VideoBean
//     */
//    public EditVideoBean() {
//    }
//
//    public String getVideoFromCandidate(CandidateLanguageInfo li){
//        String urlVideo="/Proyecto/videos/"+li.getVideo();
//        return urlVideo;
//    }
//    
//    public String getIdFromCandidate(CandidateLanguageInfo li){
//        String[] array=li.getVideo().split("\\.");
//        return array[0];
//    }
//}
